package com.is.add.enmus;

import com.is.add.util.KeyValue;

import java.util.ArrayList;
import java.util.List;

/**
 * 监控地址
 * Created by jackie on 2016/8/18.
 */
public enum MonitorUrlEnum {
    URL_service("去运动公共服务平台(全局)","http://service.dongqil.com/"),         //service公共服务平台
    URL_208("去运动接口服务器(208)","http://192.168.1.208:9000/"),
    URL_209("去运动接口服务器(209)","http://192.168.1.209:9000/"),
    URL_210("去运动接口服务器(210)","http://192.168.1.210:9000/"),
    URL_7("去运动接口服务器(备份)","http://192.168.1.7:9000/"),
    URL_mp("去运动业务管理系统","http://mp.dongqil.com/"),                         //业务管理后台mp
    URL_mgr("去运动场馆管理系统","http://mgr.dongqil.com/"),                       //场馆管理后台mgr
    URL_alipay("去运动支付宝城市服务接入","http://m.dongqil.com/html7"),           //支付宝
    URL_coachWeb("体育产业人才资源对接平台","http://59.175.146.130:8080/CoachWeb/"), //教练卡前端
    URL_ISWrapped("体育产业人才资源对接平台接口服务器","http://59.175.146.130:8888/");    //教练卡后端

    private String urlName;
    private String text;
    MonitorUrlEnum(String urlName,String text) {
        this.urlName = urlName;
        this.text = text;
    }

    public String getText() {
        return text;
    }

    public String getUrlName() {
        return urlName;
    }

    public static List<KeyValue> toList() {
        List<KeyValue>  list = new ArrayList<>();
        for (MonitorUrlEnum v: MonitorUrlEnum.values()) {
            list.add(new KeyValue(v.name(), v.getText()));
        }
        return list;
    }
}
